class_name CollisionDoor
extends StaticBody2D


@export var rooms:Array[Room2D]


func _ready() -> void:
	for i in rooms:
		var room_name = i.room_unique_name
		add_to_group(room_name)

func occupy():
	for i in rooms:
		var room_name = i.room_unique_name
		remove_from_group(room_name)
	queue_free()
